package com.example.springdatajpaderivedquerymethod.repositories;

import com.example.springdatajpaderivedquerymethod.inter.PersonInfo;
import com.example.springdatajpaderivedquerymethod.model.Person;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

public interface PersonRepository extends CrudRepository<Person,Integer> {
    List<PersonInfo> findBy();
    List<PersonInfo> findBySalaryBetween(int salaryMin,int salaryMax);
    List<PersonInfo> findByDepartmentLocation(String location);
}
